#################################################################################
##
## This file contains country name, iso code, country number, and mask that is used to store digits of numbers
## We store only country numbers for most of them except US
## Currently, the mask of US is 0111111, which means 6 digits except country code
## For the CA, we store first three digits except country code, thus mask is 0111
## Updated 7/13/2011, Youngjoon Choi, Intern in Citrix
## 
#################################################################################

COUNTRY_NUMBER = {
"US"=>{"name"=>"United States","iso3"=>"USA","number"=>"1", "current_mask"=>"0111111"}, # different with others
"CA"=>{"name"=>"Canada","iso3"=>"CAN","number"=>"1", "current_mask"=>"0111"},           # different with others  
"AF"=>{"name"=>"Afghanistan","iso3"=>"AFG","number"=>"93", "current_mask"=>"11"},
"AX"=>{"name"=>"Aland","iso3"=>"ALA","number"=>"358", "current_mask"=>"111"},
"AL"=>{"name"=>"Albania","iso3"=>"ALB","number"=>"355", "current_mask"=>"111"},
"DZ"=>{"name"=>"Algeria","iso3"=>"DZA","number"=>"213", "current_mask"=>"111"},
"AS"=>{"name"=>"American Samoa","iso3"=>"ASM","number"=>"1684", "current_mask"=>"1111"},
"AD"=>{"name"=>"Andorra","iso3"=>"AND","number"=>"376", "current_mask"=>"111"},
"AO"=>{"name"=>"Angola","iso3"=>"AGO","number"=>"244", "current_mask"=>"111"},
"AI"=>{"name"=>"Anguilla","iso3"=>"AIA","number"=>"1264", "current_mask"=>"1111"},
"AQ"=>{"name"=>"Antarctica","iso3"=>"ATA","number"=>"672", "current_mask"=>"111"},
"AG"=>{"name"=>"Antigua and Barbuda","iso3"=>"ATG","number"=>"1268", "current_mask"=>"1111"},
"AR"=>{"name"=>"Argentina","iso3"=>"ARG","number"=>"54", "current_mask"=>"11"},
"AM"=>{"name"=>"Armenia","iso3"=>"ARM","number"=>"374", "current_mask"=>"111"},
"AW"=>{"name"=>"Aruba","iso3"=>"ABW","number"=>"297", "current_mask"=>"111"},
"AU"=>{"name"=>"Australia","iso3"=>"AUS","number"=>"61", "current_mask"=>"11"},
"AT"=>{"name"=>"Austria","iso3"=>"AUT","number"=>"43", "current_mask"=>"11"},
"AZ"=>{"name"=>"Azerbaijan","iso3"=>"AZE","number"=>"994", "current_mask"=>"111"},
"BS"=>{"name"=>"Bahamas","iso3"=>"BHS","number"=>"1242", "current_mask"=>"1111"},
"BH"=>{"name"=>"Bahrain","iso3"=>"BHR","number"=>"973", "current_mask"=>"111"},
"BD"=>{"name"=>"Bangladesh","iso3"=>"BGD","number"=>"880", "current_mask"=>"111"},
"BB"=>{"name"=>"Barbados","iso3"=>"BRB","number"=>"1246", "current_mask"=>"1111"},
"BY"=>{"name"=>"Belarus","iso3"=>"BLR","number"=>"375", "current_mask"=>"111"},
"BE"=>{"name"=>"Belgium","iso3"=>"BEL","number"=>"32", "current_mask"=>"11"},
"BZ"=>{"name"=>"Belize","iso3"=>"BLZ","number"=>"501", "current_mask"=>"111"},
"BJ"=>{"name"=>"Benin","iso3"=>"BEN","number"=>"229", "current_mask"=>"111"},
"BM"=>{"name"=>"Bermuda","iso3"=>"BMU","number"=>"1441", "current_mask"=>"1111"},
"BT"=>{"name"=>"Bhutan","iso3"=>"BTN","number"=>"975", "current_mask"=>"111"},
"BO"=>{"name"=>"Bolivia","iso3"=>"BOL","number"=>"591", "current_mask"=>"111"},
"BA"=>{"name"=>"Bosnia and Herzegovina","iso3"=>"BIH","number"=>"387", "current_mask"=>"111"},
"BW"=>{"name"=>"Botswana","iso3"=>"BWA","number"=>"267", "current_mask"=>"111"},
"BV"=>{"name"=>"Bouvet Island","iso3"=>"BVT","number"=>"47", "current_mask"=>"11"},
"BR"=>{"name"=>"Brazil","iso3"=>"BRA","number"=>"55", "current_mask"=>"11"},
"IO"=>{"name"=>"British Indian Ocean","iso3"=>"IOT","number"=>"246", "current_mask"=>"111"},
"BN"=>{"name"=>"Brunei Darussalam","iso3"=>"BRN","number"=>"673", "current_mask"=>"111"},
"BG"=>{"name"=>"Bulgaria","iso3"=>"BGR","number"=>"359", "current_mask"=>"111"},
"BF"=>{"name"=>"Burkina Faso","iso3"=>"BFA","number"=>"226", "current_mask"=>"111"},
"BI"=>{"name"=>"Burundi","iso3"=>"BDI","number"=>"257", "current_mask"=>"111"},
"KH"=>{"name"=>"Cambodia","iso3"=>"KHM","number"=>"855", "current_mask"=>"111"},
"CM"=>{"name"=>"Cameroon","iso3"=>"CMR","number"=>"237", "current_mask"=>"111"},
"CV"=>{"name"=>"Cape Verde","iso3"=>"CPV","number"=>"238", "current_mask"=>"111"},
"KY"=>{"name"=>"Cayman Islands","iso3"=>"CYM","number"=>"1345", "current_mask"=>"1111"},
"CF"=>{"name"=>"Central African Republic","iso3"=>"CAF","number"=>"236", "current_mask"=>"111"},
"TD"=>{"name"=>"Chad","iso3"=>"TCD","number"=>"235", "current_mask"=>"111"},
"CL"=>{"name"=>"Chile","iso3"=>"CHL","number"=>"56", "current_mask"=>"11"},
"CN"=>{"name"=>"China","iso3"=>"CHN","number"=>"86", "current_mask"=>"11"},
"CX"=>{"name"=>"Christmas Island","iso3"=>"CXR","number"=>"61", "current_mask"=>"11"},
"CC"=>{"name"=>"Cocos (Keeling) Islands","iso3"=>"CCK","number"=>"61", "current_mask"=>"11"},
"CO"=>{"name"=>"Colombia","iso3"=>"COL","number"=>"57", "current_mask"=>"11"},
"KM"=>{"name"=>"Comoros","iso3"=>"COM","number"=>"269", "current_mask"=>"111"},
"CG"=>{"name"=>"Congo (Brazzaville)","iso3"=>"COG","number"=>"242", "current_mask"=>"111"},
"CD"=>{"name"=>"Congo (Kinshasa)","iso3"=>"COD","number"=>"243", "current_mask"=>"111"},
"CK"=>{"name"=>"Cook Islands","iso3"=>"COK","number"=>"682", "current_mask"=>"111"},
"CR"=>{"name"=>"Costa Rica","iso3"=>"CRI","number"=>"506", "current_mask"=>"111"},
"HR"=>{"name"=>"Croatia","iso3"=>"HRV","number"=>"385", "current_mask"=>"111"},
"CU"=>{"name"=>"Cuba","iso3"=>"CUB","number"=>"53", "current_mask"=>"11"},
"CY"=>{"name"=>"Cyprus","iso3"=>"CYP","number"=>"357", "current_mask"=>"111"},
"CZ"=>{"name"=>"Czech Republic","iso3"=>"CZE","number"=>"420", "current_mask"=>"111"},
"DK"=>{"name"=>"Denmark","iso3"=>"DNK","number"=>"45", "current_mask"=>"11"},
"DJ"=>{"name"=>"Djibouti","iso3"=>"DJI","number"=>"253", "current_mask"=>"111"},
"DM"=>{"name"=>"Dominica","iso3"=>"DMA","number"=>"1767", "current_mask"=>"1111"},
"DO"=>{"name"=>"Dominican Republic","iso3"=>"DOM","number"=>"1809", "current_mask"=>"1111"},
"EC"=>{"name"=>"Ecuador","iso3"=>"ECU","number"=>"593", "current_mask"=>"111"},
"EG"=>{"name"=>"Egypt","iso3"=>"EGY","number"=>"20", "current_mask"=>"11"},
"SV"=>{"name"=>"El Salvador","iso3"=>"SLV","number"=>"503", "current_mask"=>"111"},
"GQ"=>{"name"=>"Equatorial Guinea","iso3"=>"GNQ","number"=>"240", "current_mask"=>"111"},
"ER"=>{"name"=>"Eritrea","iso3"=>"ERI","number"=>"291", "current_mask"=>"111"},
"EE"=>{"name"=>"Estonia","iso3"=>"EST","number"=>"372", "current_mask"=>"111"},
"ET"=>{"name"=>"Ethiopia","iso3"=>"ETH","number"=>"251", "current_mask"=>"111"},
"FK"=>{"name"=>"Falkland Islands","iso3"=>"FLK","number"=>"500", "current_mask"=>"111"},
"FO"=>{"name"=>"Faroe Islands","iso3"=>"FRO","number"=>"298", "current_mask"=>"111"},
"FJ"=>{"name"=>"Fiji","iso3"=>"FJI","number"=>"679", "current_mask"=>"111"},
"FI"=>{"name"=>"Finland","iso3"=>"FIN","number"=>"358", "current_mask"=>"111"},
"FR"=>{"name"=>"France","iso3"=>"FRA","number"=>"33", "current_mask"=>"11"},
"GF"=>{"name"=>"French Guiana","iso3"=>"GUF","number"=>"594", "current_mask"=>"111"},
"PF"=>{"name"=>"French Polynesia","iso3"=>"PYF","number"=>"689", "current_mask"=>"111"},
"TF"=>{"name"=>"French Southern Lands","iso3"=>"ATF","number"=>"262", "current_mask"=>"111"},
"GA"=>{"name"=>"Gabon","iso3"=>"GAB","number"=>"241", "current_mask"=>"111"},
"GM"=>{"name"=>"Gambia","iso3"=>"GMB","number"=>"220", "current_mask"=>"111"},
"GE"=>{"name"=>"Georgia","iso3"=>"GEO","number"=>"995", "current_mask"=>"111"},
"DE"=>{"name"=>"Germany","iso3"=>"DEU","number"=>"49", "current_mask"=>"11"},
"GH"=>{"name"=>"Ghana","iso3"=>"GHA","number"=>"233", "current_mask"=>"111"},
"GI"=>{"name"=>"Gibraltar","iso3"=>"GIB","number"=>"350", "current_mask"=>"111"},
"GR"=>{"name"=>"Greece","iso3"=>"GRC","number"=>"30", "current_mask"=>"11"},
"GL"=>{"name"=>"Greenland","iso3"=>"GRL","number"=>"299", "current_mask"=>"111"},
"GD"=>{"name"=>"Grenada","iso3"=>"GRD","number"=>"1473", "current_mask"=>"1111"},
"GP"=>{"name"=>"Guadeloupe","iso3"=>"GLP","number"=>"590", "current_mask"=>"111"},
"GU"=>{"name"=>"Guam","iso3"=>"GUM","number"=>"1671", "current_mask"=>"1111"},
"GT"=>{"name"=>"Guatemala","iso3"=>"GTM","number"=>"502", "current_mask"=>"111"},
"GG"=>{"name"=>"Guernsey","iso3"=>"GGY","number"=>"44", "current_mask"=>"11"},
"GN"=>{"name"=>"Guinea","iso3"=>"GIN","number"=>"224", "current_mask"=>"111"},
"GW"=>{"name"=>"Guinea-Bissau","iso3"=>"GNB","number"=>"245", "current_mask"=>"111"},
"GY"=>{"name"=>"Guyana","iso3"=>"GUY","number"=>"592", "current_mask"=>"111"},
"HT"=>{"name"=>"Haiti","iso3"=>"HTI","number"=>"509", "current_mask"=>"111"},
"HM"=>{"name"=>"Heard and McDonald Islands","iso3"=>"HMD","number"=>"672", "current_mask"=>"111"},
"HN"=>{"name"=>"Honduras","iso3"=>"HND","number"=>"504", "current_mask"=>"111"},
"HK"=>{"name"=>"Hong Kong","iso3"=>"HKG","number"=>"852", "current_mask"=>"111"},
"HU"=>{"name"=>"Hungary","iso3"=>"HUN","number"=>"36", "current_mask"=>"11"},
"IS"=>{"name"=>"Iceland","iso3"=>"ISL","number"=>"354", "current_mask"=>"111"},
"IN"=>{"name"=>"India","iso3"=>"IND","number"=>"91", "current_mask"=>"11"},
"ID"=>{"name"=>"Indonesia","iso3"=>"IDN","number"=>"62", "current_mask"=>"11"},
"IR"=>{"name"=>"Iran","iso3"=>"IRN","number"=>"98", "current_mask"=>"11"},
"IQ"=>{"name"=>"Iraq","iso3"=>"IRQ","number"=>"964", "current_mask"=>"111"},
"IE"=>{"name"=>"Ireland","iso3"=>"IRL","number"=>"353", "current_mask"=>"111"},
"IM"=>{"name"=>"Isle of Man","iso3"=>"IMN","number"=>"44", "current_mask"=>"11"},
"IL"=>{"name"=>"Israel","iso3"=>"ISR","number"=>"972", "current_mask"=>"111"},
"IT"=>{"name"=>"Italy","iso3"=>"ITA","number"=>"39", "current_mask"=>"11"},
"JM"=>{"name"=>"Jamaica","iso3"=>"JAM","number"=>"1876", "current_mask"=>"1111"},
"JP"=>{"name"=>"Japan","iso3"=>"JPN","number"=>"81", "current_mask"=>"11"},
"JE"=>{"name"=>"Jersey","iso3"=>"JEY","number"=>"44", "current_mask"=>"11"},
"JO"=>{"name"=>"Jordan","iso3"=>"JOR","number"=>"962", "current_mask"=>"111"},
"KZ"=>{"name"=>"Kazakhstan","iso3"=>"KAZ","number"=>"7", "current_mask"=>"1"},
"KE"=>{"name"=>"Kenya","iso3"=>"KEN","number"=>"254", "current_mask"=>"111"},
"KI"=>{"name"=>"Kiribati","iso3"=>"KIR","number"=>"686", "current_mask"=>"111"},
"KW"=>{"name"=>"Kuwait","iso3"=>"KWT","number"=>"965", "current_mask"=>"111"},
"KG"=>{"name"=>"Kyrgyzstan","iso3"=>"KGZ","number"=>"996", "current_mask"=>"111"},
"LA"=>{"name"=>"Laos","iso3"=>"LAO","number"=>"856", "current_mask"=>"111"},
"LV"=>{"name"=>"Latvia","iso3"=>"LVA","number"=>"371", "current_mask"=>"111"},
"LB"=>{"name"=>"Lebanon","iso3"=>"LBN","number"=>"961", "current_mask"=>"111"},
"LS"=>{"name"=>"Lesotho","iso3"=>"LSO","number"=>"266", "current_mask"=>"111"},
"LR"=>{"name"=>"Liberia","iso3"=>"LBR","number"=>"231", "current_mask"=>"111"},
"LY"=>{"name"=>"Libya","iso3"=>"LBY","number"=>"218", "current_mask"=>"111"},
"LI"=>{"name"=>"Liechtenstein","iso3"=>"LIE","number"=>"423", "current_mask"=>"111"},
"LT"=>{"name"=>"Lithuania","iso3"=>"LTU","number"=>"370", "current_mask"=>"111"},
"LU"=>{"name"=>"Luxembourg","iso3"=>"LUX","number"=>"352", "current_mask"=>"111"},
"MO"=>{"name"=>"Macau","iso3"=>"MAC","number"=>"853", "current_mask"=>"111"},
"MK"=>{"name"=>"Macedonia","iso3"=>"MKD","number"=>"389", "current_mask"=>"111"},
"MG"=>{"name"=>"Madagascar","iso3"=>"MDG","number"=>"261", "current_mask"=>"111"},
"MW"=>{"name"=>"Malawi","iso3"=>"MWI","number"=>"265", "current_mask"=>"111"},
"MY"=>{"name"=>"Malaysia","iso3"=>"MYS","number"=>"60", "current_mask"=>"11"},
"MV"=>{"name"=>"Maldives","iso3"=>"MDV","number"=>"960", "current_mask"=>"111"},
"ML"=>{"name"=>"Mali","iso3"=>"MLI","number"=>"223", "current_mask"=>"111"},
"MT"=>{"name"=>"Malta","iso3"=>"MLT","number"=>"356", "current_mask"=>"111"},
"MH"=>{"name"=>"Marshall Islands","iso3"=>"MHL","number"=>"692", "current_mask"=>"111"},
"MQ"=>{"name"=>"Martinique","iso3"=>"MTQ","number"=>"596", "current_mask"=>"111"},
"MR"=>{"name"=>"Mauritania","iso3"=>"MRT","number"=>"222", "current_mask"=>"111"},
"MU"=>{"name"=>"Mauritius","iso3"=>"MUS","number"=>"230", "current_mask"=>"111"},
"YT"=>{"name"=>"Mayotte","iso3"=>"MYT","number"=>"269", "current_mask"=>"111"},
"MX"=>{"name"=>"Mexico","iso3"=>"MEX","number"=>"52", "current_mask"=>"11"},
"FM"=>{"name"=>"Micronesia","iso3"=>"FSM","number"=>"691", "current_mask"=>"111"},
"MD"=>{"name"=>"Moldova","iso3"=>"MDA","number"=>"373", "current_mask"=>"111"},
"MC"=>{"name"=>"Monaco","iso3"=>"MCO","number"=>"377", "current_mask"=>"111"},
"MN"=>{"name"=>"Mongolia","iso3"=>"MNG","number"=>"976", "current_mask"=>"111"},
"ME"=>{"name"=>"Montenegro","iso3"=>"MNE","number"=>"382", "current_mask"=>"111"},
"MS"=>{"name"=>"Montserrat","iso3"=>"MSR","number"=>"1664", "current_mask"=>"1111"},
"MA"=>{"name"=>"Morocco","iso3"=>"MAR","number"=>"212", "current_mask"=>"111"},
"MZ"=>{"name"=>"Mozambique","iso3"=>"MOZ","number"=>"258", "current_mask"=>"111"},
"MM"=>{"name"=>"Myanmar","iso3"=>"MMR","number"=>"95", "current_mask"=>"11"},
"NA"=>{"name"=>"Namibia","iso3"=>"NAM","number"=>"264", "current_mask"=>"111"},
"NR"=>{"name"=>"Nauru","iso3"=>"NRU","number"=>"674", "current_mask"=>"111"},
"NP"=>{"name"=>"Nepal","iso3"=>"NPL","number"=>"977", "current_mask"=>"111"},
"NL"=>{"name"=>"Netherlands","iso3"=>"NLD","number"=>"31", "current_mask"=>"11"},
"AN"=>{"name"=>"Netherlands Antilles","iso3"=>"ANT","number"=>"599", "current_mask"=>"111"},
"NC"=>{"name"=>"New Caledonia","iso3"=>"NCL","number"=>"687", "current_mask"=>"111"},
"NZ"=>{"name"=>"New Zealand","iso3"=>"NZL","number"=>"64", "current_mask"=>"11"},
"NI"=>{"name"=>"Nicaragua","iso3"=>"NIC","number"=>"505", "current_mask"=>"111"},
"NE"=>{"name"=>"Niger","iso3"=>"NER","number"=>"227", "current_mask"=>"111"},
"NG"=>{"name"=>"Nigeria","iso3"=>"NGA","number"=>"234", "current_mask"=>"111"},
"NU"=>{"name"=>"Niue","iso3"=>"NIU","number"=>"683", "current_mask"=>"111"},
"NF"=>{"name"=>"Norfolk Island","iso3"=>"NFK","number"=>"672", "current_mask"=>"111"},
"MP"=>{"name"=>"Northern Mariana Islands","iso3"=>"MNP","number"=>"1670", "current_mask"=>"1111"},
"NO"=>{"name"=>"Norway","iso3"=>"NOR","number"=>"47", "current_mask"=>"11"},
"OM"=>{"name"=>"Oman","iso3"=>"OMN","number"=>"968", "current_mask"=>"111"},
"PK"=>{"name"=>"Pakistan","iso3"=>"PAK","number"=>"92", "current_mask"=>"11"},
"PW"=>{"name"=>"Palau","iso3"=>"PLW","number"=>"680", "current_mask"=>"111"},
"PS"=>{"name"=>"Palestine","iso3"=>"PSE","number"=>"970", "current_mask"=>"111"},
"PA"=>{"name"=>"Panama","iso3"=>"PAN","number"=>"507", "current_mask"=>"111"},
"PG"=>{"name"=>"Papua New Guinea","iso3"=>"PNG","number"=>"675", "current_mask"=>"111"},
"PY"=>{"name"=>"Paraguay","iso3"=>"PRY","number"=>"595", "current_mask"=>"111"},
"PE"=>{"name"=>"Peru","iso3"=>"PER","number"=>"51", "current_mask"=>"11"},
"PH"=>{"name"=>"Philippines","iso3"=>"PHL","number"=>"63", "current_mask"=>"11"},
"PN"=>{"name"=>"Pitcairn","iso3"=>"PCN","number"=>"870", "current_mask"=>"111"},
"PL"=>{"name"=>"Poland","iso3"=>"POL","number"=>"48", "current_mask"=>"11"},
"PT"=>{"name"=>"Portugal","iso3"=>"PRT","number"=>"351", "current_mask"=>"111"},
"PR"=>{"name"=>"Puerto Rico","iso3"=>"PRI","number"=>"1", "current_mask"=>"1"},
"QA"=>{"name"=>"Qatar","iso3"=>"QAT","number"=>"974", "current_mask"=>"111"},
"RE"=>{"name"=>"Reunion","iso3"=>"REU","number"=>"262", "current_mask"=>"111"},
"RO"=>{"name"=>"Romania","iso3"=>"ROU","number"=>"40", "current_mask"=>"11"},
"RU"=>{"name"=>"Russian Federation","iso3"=>"RUS","number"=>"7", "current_mask"=>"1"},
"RW"=>{"name"=>"Rwanda","iso3"=>"RWA","number"=>"250", "current_mask"=>"111"},
"SH"=>{"name"=>"Saint Helena","iso3"=>"SHN","number"=>"290", "current_mask"=>"111"},
"KN"=>{"name"=>"Saint Kitts and Nevis","iso3"=>"KNA","number"=>"1869", "current_mask"=>"1111"},
"LC"=>{"name"=>"Saint Lucia","iso3"=>"LCA","number"=>"1758", "current_mask"=>"1111"},
"MF"=>{"name"=>"Saint Martin (French part)","iso3"=>"MAF","number"=>"590", "current_mask"=>"111"},
"PM"=>{"name"=>"Saint Pierre and Miquelon","iso3"=>"SPM","number"=>"508", "current_mask"=>"111"},
"PM"=>{"name"=>"Saint Pierre and Miquelon","iso3"=>"SPM","number"=>"508", "current_mask"=>"111"},
"VC"=>{"name"=>"Saint Vincent and the","iso3"=>"VCT","number"=>"1784", "current_mask"=>"1111"},
"WS"=>{"name"=>"Samoa","iso3"=>"WSM","number"=>"685", "current_mask"=>"111"},
"SM"=>{"name"=>"San Marino","iso3"=>"SMR","number"=>"378", "current_mask"=>"111"},
"ST"=>{"name"=>"Sao Tome and Principe","iso3"=>"STP","number"=>"23912", "current_mask"=>"11111"},
"SA"=>{"name"=>"Saudi Arabia","iso3"=>"SAU","number"=>"966", "current_mask"=>"111"},
"SN"=>{"name"=>"Senegal","iso3"=>"SEN","number"=>"221", "current_mask"=>"111"},
"RS"=>{"name"=>"Serbia","iso3"=>"SRB","number"=>"381", "current_mask"=>"111"},
"SC"=>{"name"=>"Seychelles","iso3"=>"SYC","number"=>"248", "current_mask"=>"111"},
"SL"=>{"name"=>"Sierra Leone","iso3"=>"SLE","number"=>"232", "current_mask"=>"111"},
"SG"=>{"name"=>"Singapore","iso3"=>"SGP","number"=>"65", "current_mask"=>"11"},
"SK"=>{"name"=>"Slovakia","iso3"=>"SVK","number"=>"421", "current_mask"=>"111"},
"SI"=>{"name"=>"Slovenia","iso3"=>"SVN","number"=>"386", "current_mask"=>"111"},
"SB"=>{"name"=>"Solomon Islands","iso3"=>"SLB","number"=>"677", "current_mask"=>"111"},
"SO"=>{"name"=>"Somalia","iso3"=>"SOM","number"=>"252", "current_mask"=>"111"},
"ZA"=>{"name"=>"South Africa","iso3"=>"ZAF","number"=>"27", "current_mask"=>"11"},
"GS"=>{"name"=>"South Georgia and South","iso3"=>"SGS","number"=>"500", "current_mask"=>"111"},
"ES"=>{"name"=>"Spain","iso3"=>"ESP","number"=>"34", "current_mask"=>"11"},
"LK"=>{"name"=>"Sri Lanka","iso3"=>"LKA","number"=>"94", "current_mask"=>"11"},
"SD"=>{"name"=>"Sudan","iso3"=>"SDN","number"=>"249", "current_mask"=>"111"},
"SR"=>{"name"=>"Suriname","iso3"=>"SUR","number"=>"597", "current_mask"=>"111"},
"SJ"=>{"name"=>"Svalbard and Jan Mayen","iso3"=>"SJM","number"=>"47", "current_mask"=>"11"},
"TL"=>{"name"=>"Timor-Leste","iso3"=>"TLS","number"=>"670", "current_mask"=>"111"},
"TG"=>{"name"=>"Togo","iso3"=>"TGO","number"=>"228", "current_mask"=>"111"},
"TK"=>{"name"=>"Tokelau","iso3"=>"TKL","number"=>"690", "current_mask"=>"111"},
"TO"=>{"name"=>"Tonga","iso3"=>"TON","number"=>"676", "current_mask"=>"111"},
"TT"=>{"name"=>"Trinidad and Tobago","iso3"=>"TTO","number"=>"1868", "current_mask"=>"1111"},
"TN"=>{"name"=>"Tunisia","iso3"=>"TUN","number"=>"216", "current_mask"=>"111"},
"TR"=>{"name"=>"Turkey","iso3"=>"TUR","number"=>"90", "current_mask"=>"11"},
"TM"=>{"name"=>"Turkmenistan","iso3"=>"TKM","number"=>"993", "current_mask"=>"111"},
"TC"=>{"name"=>"Turks and Caicos Islands","iso3"=>"TCA","number"=>"1649", "current_mask"=>"1111"},
"TV"=>{"name"=>"Tuvalu","iso3"=>"TUV","number"=>"688", "current_mask"=>"111"},
"UG"=>{"name"=>"Uganda","iso3"=>"UGA","number"=>"256", "current_mask"=>"111"},
"UA"=>{"name"=>"Ukraine","iso3"=>"UKR","number"=>"380", "current_mask"=>"111"},
"AE"=>{"name"=>"United Arab Emirates","iso3"=>"ARE","number"=>"971", "current_mask"=>"111"},
"UY"=>{"name"=>"Uruguay","iso3"=>"URY","number"=>"598", "current_mask"=>"111"},
"UZ"=>{"name"=>"Uzbekistan","iso3"=>"UZB","number"=>"998", "current_mask"=>"111"},
"VU"=>{"name"=>"Vanuatu","iso3"=>"VUT","number"=>"678", "current_mask"=>"111"},
"VA"=>{"name"=>"Vatican City","iso3"=>"VAT","number"=>"3906", "current_mask"=>"1111"},
"VE"=>{"name"=>"Venezuela","iso3"=>"VEN","number"=>"58", "current_mask"=>"11"},
"VN"=>{"name"=>"Vietnam","iso3"=>"VNM","number"=>"84", "current_mask"=>"11"},
"VG"=>{"name"=>"Virgin Islands, British","iso3"=>"VGB","number"=>"1284", "current_mask"=>"1111"},
"VI"=>{"name"=>"Virgin Islands, U.S.","iso3"=>"VIR","number"=>"1340", "current_mask"=>"1111"},
"WF"=>{"name"=>"Wallis and Futuna Islands","iso3"=>"WLF","number"=>"681", "current_mask"=>"111"},
"EH"=>{"name"=>"Western Sahara","iso3"=>"ESH","number"=>"212", "current_mask"=>"111"},
"YE"=>{"name"=>"Yemen","iso3"=>"YEM","number"=>"967", "current_mask"=>"111"},
"ZM"=>{"name"=>"Zambia","iso3"=>"ZMB","number"=>"260", "current_mask"=>"111"},
"ZW"=>{"name"=>"Zimbabwe","iso3"=>"ZWE","number"=>"263", "current_mask"=>"111"},
"CH"=>{"name"=>"Switzerland","iso3"=>"CHE","number"=>"41", "current_mask"=>"11"},
"SE"=>{"name"=>"Sweden","iso3"=>"SWE","number"=>"46", "current_mask"=>"11"},
"SY"=>{"name"=>"Syria","iso3"=>"SYR","number"=>"963", "current_mask"=>"111"},
"SZ"=>{"name"=>"Swaziland","iso3"=>"SWZ","number"=>"268", "current_mask"=>"111"},
"TW"=>{"name"=>"Taiwan","iso3"=>"TWN","number"=>"886", "current_mask"=>"111"},
"TJ"=>{"name"=>"Tajikistan","iso3"=>"TJK","number"=>"992", "current_mask"=>"111"},
"TZ"=>{"name"=>"Tanzania","iso3"=>"TZA","number"=>"255", "current_mask"=>"111"},
"TH"=>{"name"=>"Thailand","iso3"=>"THA","number"=>"66", "current_mask"=>"11"},
"UK"=>{"name"=>"United Kingdom","iso3"=>"GBR","number"=>"44", "current_mask"=>"11"},
"KR"=>{"name"=>"Korea South","iso3"=>"KOR","number"=>"82", "current_mask"=>"11"},
"KP"=>{"name"=>"Korea North","iso3"=>"PRK","number"=>"850", "current_mask"=>"111"}}


NUMBER_TO_COUNTRY_CODE = {  
"93"=>"AF",
"358"=>"AX",
"355"=>"AL",
"213"=>"DZ",
"1684"=>"AS",
"376"=>"AD",
"244"=>"AO",
"1264"=>"AI",
"672"=>"AQ",
"1268"=>"AG",
"54"=>"AR",
"374"=>"AM",
"297"=>"AW",
"61"=>"AU",
"43"=>"AT",
"994"=>"AZ",
"1242"=>"BS",
"973"=>"BH",
"880"=>"BD",
"1246"=>"BB",
"375"=>"BY",
"32"=>"BE",
"501"=>"BZ",
"229"=>"BJ",
"1441"=>"BM",
"975"=>"BT",
"591"=>"BO",
"387"=>"BA",
"267"=>"BW",
"47"=>"BV",
"55"=>"BR",
"246"=>"IO",
"673"=>"BN",
"359"=>"BG",
"226"=>"BF",
"257"=>"BI",
"855"=>"KH",
"237"=>"CM",
"1"=>"CA",
"238"=>"CV",
"1345"=>"KY",
"236"=>"CF",
"235"=>"TD",
"56"=>"CL",
"86"=>"CN",
"61"=>"CX",
"61"=>"CC",
"57"=>"CO",
"269"=>"KM",
"242"=>"CG",
"243"=>"CD",
"682"=>"CK",
"506"=>"CR",
"385"=>"HR",
"53"=>"CU",
"357"=>"CY",
"420"=>"CZ",
"45"=>"DK",
"253"=>"DJ",
"1767"=>"DM",
"1809"=>"DO",
"593"=>"EC",
"20"=>"EG",
"503"=>"SV",
"240"=>"GQ",
"291"=>"ER",
"372"=>"EE",
"251"=>"ET",
"500"=>"FK",
"298"=>"FO",
"679"=>"FJ",
"358"=>"FI",
"33"=>"FR",
"594"=>"GF",
"689"=>"PF",
"262"=>"TF",
"241"=>"GA",
"220"=>"GM",
"995"=>"GE",
"49"=>"DE",
"233"=>"GH",
"350"=>"GI",
"30"=>"GR",
"299"=>"GL",
"1473"=>"GD",
"590"=>"GP",
"1671"=>"GU",
"502"=>"GT",
"44"=>"GG",
"224"=>"GN",
"245"=>"GW",
"592"=>"GY",
"509"=>"HT",
"672"=>"HM",
"504"=>"HN",
"852"=>"HK",
"36"=>"HU",
"354"=>"IS",
"91"=>"IN",
"62"=>"ID",
"98"=>"IR",
"964"=>"IQ",
"353"=>"IE",
"44"=>"IM",
"972"=>"IL",
"39"=>"IT",
"1876"=>"JM",
"81"=>"JP",
"44"=>"JE",
"962"=>"JO",
"7"=>"KZ",
"254"=>"KE",
"686"=>"KI",
"965"=>"KW",
"996"=>"KG",
"856"=>"LA",
"371"=>"LV",
"961"=>"LB",
"266"=>"LS",
"231"=>"LR",
"218"=>"LY",
"423"=>"LI",
"370"=>"LT",
"352"=>"LU",
"853"=>"MO",
"389"=>"MK",
"261"=>"MG",
"265"=>"MW",
"60"=>"MY",
"960"=>"MV",
"223"=>"ML",
"356"=>"MT",
"692"=>"MH",
"596"=>"MQ",
"222"=>"MR",
"230"=>"MU",
"269"=>"YT",
"52"=>"MX",
"691"=>"FM",
"373"=>"MD",
"377"=>"MC",
"976"=>"MN",
"382"=>"ME",
"1664"=>"MS",
"212"=>"MA",
"258"=>"MZ",
"95"=>"MM",
"264"=>"NA",
"674"=>"NR",
"977"=>"NP",
"31"=>"NL",
"599"=>"AN",
"687"=>"NC",
"64"=>"NZ",
"505"=>"NI",
"227"=>"NE",
"234"=>"NG",
"683"=>"NU",
"672"=>"NF",
"1670"=>"MP",
"47"=>"NO",
"968"=>"OM",
"92"=>"PK",
"680"=>"PW",
"970"=>"PS",
"507"=>"PA",
"675"=>"PG",
"595"=>"PY",
"51"=>"PE",
"63"=>"PH",
"870"=>"PN",
"48"=>"PL",
"351"=>"PT",
"1"=>"PR",
"974"=>"QA",
"262"=>"RE",
"40"=>"RO",
"7"=>"RU",
"250"=>"RW",
"290"=>"SH",
"1869"=>"KN",
"1758"=>"LC",
"590"=>"MF",
"508"=>"PM",
"508"=>"PM",
"1784"=>"VC",
"685"=>"WS",
"378"=>"SM",
"23912"=>"ST",
"966"=>"SA",
"221"=>"SN",
"381"=>"RS",
"248"=>"SC",
"232"=>"SL",
"65"=>"SG",
"421"=>"SK",
"386"=>"SI",
"677"=>"SB",
"252"=>"SO",
"27"=>"ZA",
"500"=>"GS",
"34"=>"ES",
"94"=>"LK",
"249"=>"SD",
"597"=>"SR",
"47"=>"SJ",
"670"=>"TL",
"228"=>"TG",
"690"=>"TK",
"676"=>"TO",
"1868"=>"TT",
"216"=>"TN",
"90"=>"TR",
"993"=>"TM",
"1649"=>"TC",
"688"=>"TV",
"256"=>"UG",
"380"=>"UA",
"971"=>"AE",
"598"=>"UY",
"998"=>"UZ",
"678"=>"VU",
"3906"=>"VA",
"58"=>"VE",
"84"=>"VN",
"1284"=>"VG",
"1340"=>"VI",
"681"=>"WF",
"212"=>"EH",
"967"=>"YE",
"260"=>"ZM",
"263"=>"ZW",
"41"=>"CH",
"46"=>"SE",
"963"=>"SY",
"268"=>"SZ",
"886"=>"TW",
"992"=>"TJ",
"255"=>"TZ",
"66"=>"TH",
"44"=>"UK",
"1"=>"US",
"82"=>"KR",
"850"=>"KP"}